﻿@model List<JT.WEB.Models.Were.TbNameClass>
@{
    ViewData["Title"] = "物品类-管理";
}


<table class="table">
    <thead>
        <tr>
            <th>物品类别</th>
            <th></th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.NameClass</td>
                <td></td>
                <td>
                    <form asp-action="NameClassDelete" method="post">
                        <button asp-action="NameClassDelete" asp-route-Id="@item.NameClass" class="btn btn-sm btn-danger" data-toggle="tooltip" data-placement="top" title="删除"><span class="fa fa-trash"></span></button>

                    </form>

                </td>
            </tr>

        }
    </tbody>
</table>
<a asp-action="NameClassCreate" class="btn btn-outline-success">增加</a>

<a asp-action="Index">返回管理首页</a>
<script>
    $(document).ready(function(){
    $('[data-toggle="tooltip"]').tooltip();
});
</script>